#ifndef CGWINDOW_H_
#define CGWINDOW_H_
#include "CBase.h"
#include "CRender.h"
#include "CShape.h"
#include "CTextureManager.h"

class CGWindow : public CBase
{
private:
public:
	CGWindow(int nType, float fDeg1, float fDeg2, float inner, float outer, int div)
	{
		m_Quad.MakeNoodle(fDeg1, fDeg2, inner, outer, div);
		switch(nType)
		{
		case 0:
			m_pTex = CTextureManager::GetInstance()->LoadTexture("img/columns/GothicWindow1.tga");
			break;
		case 1:
			m_pTex = CTextureManager::GetInstance()->LoadTexture("img/columns/GothicWindow2.tga");
			break;
		case 2:
			m_pTex = CTextureManager::GetInstance()->LoadTexture("img/columns/GothicWindow3.tga");
			break;
		}
	}

	Texture *m_pTex;
	CShape m_Quad;

	void Render()
	{
		CRender::GetInstance()->DrawTex(m_pTex, &m_Quad, Vec2(0, 0), -1);
	}
};

#endif